{% extends 'common/base.html' %}

{% load staticfiles %}

{% block head_js %}
	<script type="text/javascript" src="{% static 'js/jquery-1.12.4.min.js' %}"></script>
	<script type="text/javascript" src="{% static 'js/register.js' %}"></script>
{% endblock head_js %}

{% block body %}

	<div class="register_con">
		<div class="l_con fl">
			<a class="reg_logo"><img src="{% static "images/logo02.png" %}"></a>
			<div class="reg_slogan">足不出户  ·  新鲜每一天</div>
			<div class="reg_banner"></div>
		</div>

		<div class="r_con fr">
			<div class="reg_title clearfix">
				<h1>用户注册</h1>
				<a href="{% url 'users:login' %}">登录</a>
			</div>

			<div class="reg_form clearfix">
				<form id="reg_form" action="{% url 'users:deal_register' %}" method="post">
				<ul>
                    {% csrf_token %}
					<li>
                        <label>用户名:</label>
						<input type="text" name="user_name" id="user_name">
						<span class="error_tip">提示信息</span>
                        <span class="error_tip_info">{{ error_mess.user_name }}</span>
					</li>					
					<li>
						<label>密码:</label>
						<input type="password" name="user_pwd1" id="user_pwd1">
						<span class="error_tip">提示信息</span>
                        <span class="error_tip_info">{{ error_mess.user_pwd1 }}</span>

					</li>
					<li>
						<label>确认密码:</label>
						<input type="password" name="user_pwd2" id="user_pwd2">
						<span class="error_tip">提示信息</span>
                        <span class="error_tip_info">{{ error_mess.user_pwd2 }}</span>
					</li>
					<li>
						<label>邮箱:</label>
						<input type="text" name="user_email" id="user_email">
						<span class="error_tip">提示信息</span>
                        <span class="error_tip_info">{{ error_mess.user_email }}</span>
					</li>
					<li class="agreement">
						<input type="checkbox" name="user_allow" id="user_allow" checked="checked">
						<label>同意”天天生鲜用户使用协议“</label>
						<span class="error_tip2">提示信息</span>
                        <span class="error_tip_info">{{ error_mess.user_allow }}</span>
					</li>
					<li class="reg_sub">
						<input type="submit" value="注 册" name="">
					</li>
				</ul>				
				</form>
			</div>

		</div>

	</div>

{% endblock body %}
